package com.young.trigger.event;

import com.young.core.domain.JobDO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @description：
 * @author: yangyahui01
 * @date: 11/29/24 3:52 PM
 */
@Component
public class EmptyNodeEventListener implements ApplicationListener<EmptyNodeEvent> {

    private static final Logger LOGGER = LoggerFactory.getLogger(BrokerEventListener.class);


    /**
     * Handle an application event.
     *
     * @param event the event to respond to
     */
    @Override
    public void onApplicationEvent(EmptyNodeEvent event) {

        JobDO jobDO = event.getSource();

        LOGGER.info("监听到了EmptyNodeEvent:{}",jobDO);

    }
}
